package com.woyou.ui.activity;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

import com.citaq.ideliver.R;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

/**
 * 推荐商户 SendShopFragment
 * 
 * @author tanglc
 */
@EActivity(R.layout.fm_sendshop)
public class SendShopActivity extends BaseActivity {

	@ViewById // 头部标题
	TextView head_title, shopname, shopaddr;
	@ViewById // 退出
	RelativeLayout myback;
	@ViewById // 提交问题
	LinearLayout submitproblem;

	@AfterViews
	public void init() {
		// 初始化数据
		initView();
	}

	// 退出、APP问题、服务问题、推荐店铺、我要开店
	@Click({ R.id.myback, R.id.submitproblem })
	void OnClick(View view) {
		switch (view.getId()) {
		case R.id.myback:
			// 退出意见反馈界面
			clazz = SendShopActivity_.class;
			// BusProvider.getInstance().post(closeSetUpFM());
			finish();
			break;
		case R.id.submitproblem:
			// 退出服务问题界面
			hideSoftInput(mActivity, shopname);
			clazz = SendShopActivity_.class;
			// BusProvider.getInstance().post(closeSetUpFM());
			finish();
			break;
		default:
			break;
		}
	}

	Class clazz;

	// @Produce
	// public EventCloseFM closeSetUpFM() {
	// return new EventCloseFM(clazz, null);
	// }
	// @Produce public EventOpenFM<Class, FmInfoBean> openFM(){
	// return new EventOpenFM<Class, FmInfoBean>(clazz, null);
	// }
	public void initView() {
		head_title.setText("推荐店铺");
		submitproblem.setVisibility(View.VISIBLE);
		// submittext.setText("提交推荐");
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.woyou.ui.api.IBackEventStrategy#backOperate()
	 */
	@Override
	public boolean backOperate() {
		// TODO Auto-generated method stub
		return false;
	}

}
